// 弹窗
.z-popup {
    // background: rgba(0, 0, 0, 0.48);
    // position: fixed;
    height: 100%;
    // width: 100%;
    // top: 0;
    // left: 0;
    // z-index: $popup-z;
    position: relative;
    z-index: 200000000;
    .bg {
        background: $popup-bg;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: -1;
    }
    // 单个模块用这个
    .body {
        // background: #fff;
        // padding: 20px;
        // border-radius: 5px;
        position: relative;
        // padding: 30px;
        // display: none;
    }
    // 多个模块用这个
    .section {
        position: relative;
        // display: none;
    }
    // &.z-fixed-full {
    //     position: fixed;
    //     height: 100%;
    //     width: 100%;
    //     top: 0;
    //     left: 0;
    //     z-index: $popup-z;
    // }
}

.popup-confirm {
    .bg {
        // background: none;
    }
    .btn {
        a {
            display: block;
            text-align: center;
            border-right: 1px solid $bor;
            flex: 1;
            padding: $pa;
            color: $bg;
        }
    }
}

.popup-default {
    > .body,
    > .section {
        background: #fff;
        border-radius: 5px;
        border: 1px solid $bor;
        min-width: 230px;
    }
    .title {
        border-bottom: 1px solid $bor;
        padding: $pa;
        font-size: 16px;
        font-weight: bold;
    }
    .content {
        padding: $pa;
    }
}

.popup-full {
    > .body,
    > .section {
        width: 100%;
        height: 100%;
        overflow-y: scroll;
        border-radius: 0;
        transition: all 1s;
    }
    animation: zoomIn .2s 1 linear;
}

.popup-tips {
    .bg {
        background: rgba(255, 255, 255, 0);
    }
    .text {
        background: rgba(0, 0, 0, .75);
        border-radius: 5px;
        color: #fff;
        padding: $pa-s $pa;
        text-align: center;
        min-width: 100px;
        max-width: 65%;
    }
}

.popup-tips-top {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: initial;
    .body {
        padding: 5px $pa-s;
    }
}

.popup-loading {
    .bg {
        // background: rgba(0, 0, 0, 0);
        background: rgba(0,0,0,.7);
        // background: none;
    }
    // .body {
    //     background: rgba(0, 0, 0, 0.48);
    //     border-radius: 5px;
    // }
    // flex-flow:column;
    .body {
        padding: $pa-xl;
        display:flex;
        align-items:center;
        // background: #fff;
        // border-radius: 5px;
        .text {
            color: #fff;
            margin-left: $pa-f;
            vertical-align: top;
            // display:none;
        }
    }
    .loader {
        margin: 0 auto;
        font-size: 10px;
        position: relative;
        text-indent: -9999em;
        border-top: .1rem solid rgba(255, 255, 255, 0.2);
        border-right: .1rem solid rgba(255, 255, 255, 0.2);
        border-bottom: .1rem solid rgba(255, 255, 255, 0.2);
        border-left: .1rem solid $bg;
        animation: rotate 1.1s infinite linear;
        display: inline-block;
    }
    .loader,
    .loader:after {
        border-radius: 100%;
        width: 1rem;
        height: 1rem;
    }
}

@keyframes zoomIn {
    0% {
        opacity: 0;
        transform: scale3d(.3, .3, .3)
    }
    50% {
        opacity: 1
    }
}

@keyframes rotate {
    from {
        transform: rotate(0)
    }
    to {
        transform: rotate(360deg)
    }
}

.animated {
    animation-duration: 1s;
    animation-fill-mode: both
}

.zoomIn {
    animation-duration: .3s;
    animation-name: zoomIn;
}
